import VueRouter from 'vue-router'

import HomeContainer from '../components/tabbar/HomeContainer.vue'
import MemberContainer from '../components/tabbar/MemberContainer.vue'
import ShopCarContainer from '../components/tabbar/ShopCarContainer.vue'
import SearchContainer from '../components/tabbar/SearchContainer.vue'
import NewList from '../components/news/NewList.vue'
import ShareImg from '../components/shareImg/ShareImg.vue'
import GoodList from '../components/goodList/GoodList.vue'

let router = new VueRouter({
    routes: [
        {path:'/',redirect:"/home"},
        {path:'/home',component:HomeContainer},
        {path:'/member',component:MemberContainer},
        {path:'/shopCar',component:ShopCarContainer},
        {path:'/search',component:SearchContainer},
        {path:'/home/newList/:id',component:NewList},
        {path:'/home/shareImg',component:ShareImg},
        {path:'/home/goodList/:id',component:GoodList}
    ],
    linkActiveClass: 'mui-active'
})


export default router